package util.shaders;

import javax.media.opengl.GL;

import general.CachedResourceManager;

public class ProgramManager extends CachedResourceManager<Program>
{
    private GL gl;
	public ProgramManager(boolean autoDestroyResources,GL gl)
	{
		super(autoDestroyResources);
		this.gl = gl;
	}
    public static Program createProgram(String vertexShaderResourceString,String fragmentShaderResourceString)
    {
        return getAllocatedResource(new Program(vertexShaderResourceString,fragmentShaderResourceString));
    }

}
